package com.zzyl.mapper;

import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 护理项目Mapper接口
 */
@Mapper
public interface NursingProjectMapper {


    List<NursingProject> selectByPage(@Param("name") String name, @Param("status") Integer status);

    NursingProject selectByName(String name);

    int insert(NursingProject dto);

    NursingProject selectById(Long id);

    int updateById(NursingProject dto);

    int updateStatusById(@Param("id") Long id, @Param("status") Integer status);

    int deleteById(Long id);

    List<NursingProject> selectAll();

}